package com.xjj.test.restful.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 类描述:〈〉
 */
@Data
public class User {

  @NotNull(message = "用户名不能为空")
  @NotBlank(message = "用户名不能为空字符")
  @Size(min = 4, max = 10, message = "用户名长度必须4~10位")
  private String userName;

  @NotNull(message = "密码不能为空")
  @NotBlank(message = "密码不能为空字符")
  @Size(min = 6, max = 8, message = "密码长度必须6~8位")
  private String password;

}
